package com.ferret.service;

import cn.hutool.json.JSONObject;
import com.ferret.bean.entity.RyGzryxxcj;
import com.ferret.dao.RyGzryxxcjDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class RyGzryxxcjService {
    public Logger logger = LoggerFactory.getLogger(getClass());

    @Resource
    private RyGzryxxcjDao ryGzryxxcjDao;
    public JSONObject qeuryIsZk(String gmsfhm,String regionalCode) {
        JSONObject resJson = new JSONObject();
        List<RyGzryxxcj> ryGzryxxcjList = ryGzryxxcjDao.findAllByGmsfhm(gmsfhm,regionalCode);
        resJson.putOpt("data", ryGzryxxcjList);
        return resJson;
    }
}
